<?php

namespace App\Models\V1;

class DictData extends BaseModel
{
    protected $table="dict_data";
    protected $fillable=['dict_sort','dict_label','dict_value','dict_type','list_class','is_default','state','remark'];

    /**
     * 状态
     * @param $key
     * @return string
     */
    public function getStateAttribute($key)
    {
        return (string) $key;
    }
}
